﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tsanie.ShellExt.PropertySheet
{
    public class TextProvider : PropertySheetBaseProvider
    {
        public override string ProviderName
        {
            get { return "PropertySheet.Text"; }
        }
        public override ProviderType Type
        {
            get { return ProviderType.PropertySheet; }
        }
        public override string[] Exts
        {
            get { return new[] { ".txt" }; }
        }
        public override string Creator
        {
            get { return "Tsanie"; }
        }

        public override PropertySheetTemplate GetTemplate(string[] files)
        {
            return InitTemplate(files);
        }

        TextTemplate InitTemplate(string[] files)
        {
            TextTemplate tp = new TextTemplate();
            tp.InitializeComponent();
            foreach (string file in files)
            {
                tp.label1.Text += file + "\n";
            }
            return tp;
        }
    }
}
